﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OA_Sys_InitUserPwd.aspx.cs"
    Inherits="Web.Views.SystemConfig.OA_Sys_InitUserPwd" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <link href="../../App_Themes/NewPage/styles/tables.css" rel="Stylesheet" type="text/css" />
    <link href="../../App_Themes/NewPage/styles/layout.css" rel="Stylesheet" type="text/css" />

    <script type="text/javascript" src="../../Easy_UI/jquery-1.6.min.js"></script>

    <script type="text/javascript" src="../../Javascript/RiaFrame_Base.js"></script>

    <script type="text/javascript">
    function SelReciever() {
        //            var nowhref = "OA_Sys_PerTransferTreeFmate.aspx?OrgId=" + document.getElementById("hiddenOrgID").value + "&OlduserIds=" + document.getElementById("hiddenUserIds").value + "&OldOrgIds=";
        var toporgId = $("#htopOrgId").val();
        //var toporgId = "";
        var nowhref = "OrgUserPicker.aspx";
        var obj = window.showModalDialog(nowhref, window, "dialogHeight:500px;dialogWidth:360px;status:no;help:no;resizable:no;scroll-y:yes;");

        if (typeof (obj) == "object") {
            for (var i = 0; i < obj.length; i++) {
                if (list[i].nodeData != "") {
                    document.getElementById("txtName").value = obj[i].nodeData;
                }
                if (obj[i].nodeId != "") {
                    this.document.getElementById("txtId").value = obj[i].nodeId;
                }
            }
        }
        else if (typeof (obj) == "string") {
            var list = eval(obj);
            if (list != "" && list != null) {
                //得到用户名
                document.getElementById("txtName").value = list[0].nodeData;
                document.getElementById("txtId").value = list[0].nodeId;
            }
            else {
                this.document.getElementById("txtName").value = "";
                this.document.getElementById("txtId").value = "";
            }
        }
        //alert($("#txtId").val());
    }
    </script>

    <title></title>
</head>
<body style="margin: 0; border: 0;">
    <form id="form1" runat="server" style="margin-left:4%;width:92%">
    <div>
        <h3>
            初始化用户密码</h3>
        <div>
            <table width="100%" cellpadding="0" cellspacing="0" class="table_01">
                <tr>
                    <th style="width: 30%; text-align: right">
                        选择要重置密码的用户：
                    </th>
                    <td>
                        <asp:TextBox ID="txtName" runat="server" disabled="" Width="50%"></asp:TextBox><img alt="选择用户"
                            src="../../Images/UserPicker/Depment.gif" style="cursor: hand" onclick="SelReciever();" />
                        <asp:HiddenField ID="txtId" runat="server" />
                    </td>
                </tr>
                <tr>
                    <th style="width: 30%; text-align: right">
                        用户新密码：
                    </th>
                    <td>
                        <asp:TextBox ID="txtNewPassword" runat="server" Width="50%"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtNewPassword"
                            ErrorMessage="请输入密码！"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <th style="width: 30%; text-align: right">
                        确认新密码：
                    </th>
                    <td>
                        <asp:TextBox ID="txtConfirm" runat="server" Width="50%"></asp:TextBox>
                        <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtNewPassword"
                            ControlToValidate="txtConfirm" ErrorMessage="两次输入不一致"></asp:CompareValidator>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" align="center">
                        <input id="A1" runat="server" type="button" class="jq-input-save" onserverclick="btnCancel_Click"
                            value="保存" />
                        <input id="A2" runat="server" type="button" class="jq-input-cancel" onserverclick="btnClear_Click"
                            value="重置" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <asp:HiddenField ID="htopOrgId" runat="server" />
    </form>
</body>
</html>
